package top.kaoshanji.ch01;

import com.google.common.io.Resources;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;

/**
 * 代码清单 ch01-08：并行流示例(1.14节)
 * 代码不理解，先跳过
 * author kaoshanji
 * ^_^
 * create time 2024/12/6 10:46
 */
public class ParallelStreams {

    private static final Logger logger = LogManager.getLogger(ParallelStreams.class);

    static final String FILE_NAME = "gutenberg/alice30.txt";

    public static void main(String[] args) throws IOException {
        logger.info("...代码清单 ch01-08：并行流示例(1.14节)...");

        String fileContent = Resources.toString(Resources.getResource(FILE_NAME), StandardCharsets.UTF_8);
        List<String> wordList = List.of(fileContent.split("\\PL+"));



    }

}
